home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: uu4news.netcom.com!zodiac!szh
- From: szh@zcon.com (Syed Zaeem Hosain)
- Subject: Re: Checking For Keyboard Input
- Message-ID: <1996Feb28.181312.28362@zcon.com>
- Sender: szh@zcon.com (Syed Zaeem Hosain)
- Nntp-Posting-Host: zodiac
- Reply-To: szh@zcon.com
- Organization: Z Consulting Group
- References: <3133b654.1470756@news.sapien.net>
- Date: Wed, 28 Feb 1996 18:13:12 GMT
-
- In article <3133b654.1470756@news.sapien.net>, bethcobb@sapien.net (bethcobb) writes:
- >c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) wrote:
- >
- >>In article <cerebus.34.000DD98A@voicenet.com>,
- >>aLEX <cerebus@voicenet.com> wrote:
- >
- >>
- >>This question comes up not fewer than 10 times a week in this newsgroup, yet it
- >>has nothing to do with the C language. It is more than adequatly covered in the
- >>FAQ, as you would know if you had read it.
- >>--
- >>
- >Which FAQ are you referring to?
-
- The comp.lang.c FAQ, of course (thanks to Steve Summit)!
-
- Which has the following questions (and their answers, as can best be done
- from a C language perspective) in it:
-
- 19.1: How can I read a single character from the keyboard without
- waiting for the RETURN key? How can I stop characters from
- being echoed on the screen as they're typed?
-
- 19.2: How can I find out if there are characters available for reading
- (and if so, how many)? Alternatively, how can I do a read that
- will not block if there are no characters available?
-
- 19.3: How can I display a percentage-done indication that updates
- itself in place, or show one of those "twirling baton" progress
- indicators?
-
- 19.4: How can I clear the screen?
- How can I print things in inverse video?
- How can I move the cursor to a specific x, y position?
-
- 19.5: How do I read the arrow keys? What about function keys?
-
- 19.6: How do I read the mouse?
-
-
- among other very system-specific responses. I strongly recommend reading
- the FAQ ... in the words of a famous ad campaign, assuming I remember it
- correctly <smile>:
-
- "Try It, You'll Like It!"
-
- Z
-
-
- --
- -------------------------------------------------------------------------
- | Syed Zaeem Hosain P. O. Box 610097 (408) 441-7021 |
- | Z Consulting Group San Jose, CA 95161 szh@zcon.com |
- -------------------------------------------------------------------------
-